package top.tomxwd.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.tomxwd.common.Result;
import top.tomxwd.entity.Payment;

/**
 * @author xieweidu
 * @createDate 2020-08-02 9:31
 */
@FeignClient(value = "PAYMENT-8001")
public interface PaymentFeignService {

    @GetMapping(value = "/payment/getById/{id}")
    Result<Payment> getPaymentById(@PathVariable("id") Long id);


    @GetMapping("/payment/timeout")
    String timeout();

}
